/**
 * @name: detection
 * @author: pengxiaoqi
 * @date: 2022/4/20 5:26 下午
 * @description：detection
 * @update: 2022/4/20 5:26 下午
 */
import Layout from '@/components/layout/layout.vue'
import index from "@/view/detection/index.vue";
import applyList from "@/view/detection/applyList.vue";
import addApply from "@/view/detection/addApply.vue";
import resultList from "@/view/detection/resultList.vue";
import resultInfo from "@/view/detection/resultInfo.vue";
import positiveList from "@/view/detection/positiveList.vue";
import positiveInfo from "@/view/detection/positiveInfo.vue";

const detection = [{
  path: '/detection',
  name: 'detection',
  component: Layout,
  meta: {
    title: '核酸检测管理'
  },
  children: [{
    path: '/apply',
    name: 'apply',
    component: index,
    redirect: "/apply/",
    meta: {
      title: '核酸检测申请'
    },
    children: [{
      path: '/',
      name: 'applyList',
      component: applyList,
    }, {
      path: 'addApply',
      name: 'addApply',
      component: addApply,
      meta: {
        activeName: '/apply'
      }
    }, {
      path: 'resultList',
      name: 'resultList',
      component: resultList,
    }],
  }, {
    path: '/result',
    name: 'result',
    component: index,
    redirect: "/result/",
    meta: {
      title: '检测结果查询'
    },
    children: [{
      path: '/',
      name: 'resultList',
      component: resultList,
    }, {
      path: 'resultInfo',
      name: 'resultInfo',
      component: resultInfo,
      meta: {
        activeName: '/result'
      }
    },],
  }, {
    path: '/positive',
    name: 'positive',
    component: index,
    redirect: "/positive/",
    meta: {
      title: '阳性居民查询'
    },
    children: [{
      path: '/',
      name: 'positiveList',
      component: positiveList,
    }, {
      path: 'positiveInfo',
      name: 'positiveInfo',
      component: positiveInfo,
      meta: {
        activeName: '/positive'
      }
    },],
  }]
}]
export default detection;
